﻿using System;
using LeopardAOP.Aspects;

namespace LeopardAOP.Sample.HelloWorld
{
    internal class HelloWorld : AspectDynamicMetaObjectProvider
    {
        [HelloWorldAspect]
        public void HelloWorldCall()
        {
            Console.WriteLine("Hello World");
        }

        [NotNullInvocationAspect]
        public void PrintIfArgNotNull(string text)
        {
            Console.WriteLine("\n" + "PrintIfArgNotNull");
            Console.WriteLine(text);
        }
    }
}